package com.example.mydy.model;

import com.google.gson.annotations.SerializedName;

public class Invitee {
    @SerializedName("id")
    private int id;
    
    @SerializedName("inviter_id")
    private int inviterId;
    
    @SerializedName("invitee_id")
    private int inviteeId;
    
    @SerializedName("level")
    private int level;
    
    @SerializedName("status")
    private String status;
    
    @SerializedName("created_at")
    private String createdAt;
    
    @SerializedName("username")
    private String username;
    
    @SerializedName("userNickname")
    private String userNickname;
    
    @SerializedName("userLevel")
    private String userLevel;
    
    @SerializedName("registered_at")
    private String registeredAt;
    
    public int getId() {
        return id;
    }
    
    public int getInviterId() {
        return inviterId;
    }
    
    public int getInviteeId() {
        return inviteeId;
    }
    
    public int getLevel() {
        return level;
    }
    
    public String getStatus() {
        return status;
    }
    
    public String getCreatedAt() {
        return createdAt;
    }
    
    public String getUsername() {
        return username;
    }
    
    public String getUserNickname() {
        return userNickname;
    }
    
    public String getNickname() {
        return userNickname;
    }
    
    public String getUserLevel() {
        return userLevel;
    }
    
    public String getRegisteredAt() {
        return registeredAt;
    }
    
    public String getRegistrationDate() {
        if (registeredAt != null && registeredAt.length() > 10) {
            return registeredAt.substring(0, 10);
        }
        return registeredAt != null ? registeredAt : "未知";
    }
} 